| Conditions | 3 |
| Paths | 5 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import process from 'child_process' |
||
| 25 | export function remove(name) { |
||
| 26 | let lockFile = path.join(config.root, `abe-process-${name}.lock`) |
||
| 27 | try { |
||
| 28 | var stats = fs.statSync(lockFile) |
||
| 29 | if (stats.isFile()) { |
||
| 30 | fs.unlinkSync(lockFile) |
||
| 31 | return true |
||
| 32 | } |
||
| 33 | }catch(err) { |
||
| 34 | |||
| 35 | } |
||
| 36 | return false |
||
| 37 | } |
||
| 38 | |||
| 46 | } |